import request from '@/utils/request'

export function findAll() {
  return request({
    url: '/student/list',
    method: 'get',
  })
}
export function search(page,pageSize,student) {
  return request({
    url: `/student/search?page=${page}&pageSize=${pageSize}`,
    method: 'post',
    data:student
  })
}

export function save(url,data) {
  return request({
    url,
    method: 'post',
    data
  })
}


export function delStudent(sid) {
  return request({
    url:`/student/delete?sid=${sid}`,
    method: 'get',
  })
}
export function findById(sid) {
  return request({
    url:`/student/findById?sid=${sid}`,
    method: 'get',
  })
}
